/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.LSPviolation.impl;

import za.ac.cput.LSPviolation.AccountsService;

/**
 *
 * @author Enkosi
 */
public class Account implements AccountsService {
    protected int balance;
    protected int cost;
    
    public Account(){
    }
    public Account(int balance, int cost){
        this.balance = balance;
        this.cost = cost;
    }
    /**
     * @return the balance
     */
    public int getBalance() {
        return balance;
    }

    /**
     * @param balance the balance to set
     */
    public void setBalance(int balance) {
        this.balance = balance;
    }

    /**
     * @return the cost
     */
    public int getCost() {
        return cost;
    }

    /**
     * @param cost the cost to set
     */
    public void setCost(int cost) {
        this.cost = cost;
    }

    @Override
    public int annualSalary() {
        return balance * 12;
    }

    @Override
    public int grossSalary() {
        return balance - cost;
    }
}
